#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import psyconsultant_blueprint
from api_1_0.psyConsultantResource.psyConsultantResource import PsyConsultantResource
from api_1_0.psyConsultantResource.psyConsultantOtherResource import PsyConsultantOtherResource

api = Api(psyconsultant_blueprint)

api.add_resource(PsyConsultantResource, '/psyConsultant/<psy_id>', '/psyConsultant', endpoint='PsyConsultant')


@psyconsultant_blueprint.route('/psyconsultant/update/<psy_id>', methods=['PUT'], endpoint='PsyConsultantUpdate')
def update(psy_id):
    return PsyConsultantOtherResource.sensitive_update(psy_id)
